package com.weigj.model;

import java.util.ArrayList;
import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class BaseData extends Model<BaseData>{
	public static final BaseData dao = new BaseData();
	
	/**
	 * 根据 基础数据的type查询secname 
	 * @see table APP_SORTCODESEC,pojo AppSortcodesec
	 * @param type
	 * @return
	 */
	public List<BaseData> queryListByType(String type){
			List<BaseData> datas = new ArrayList<BaseData>();
			String sql = "select * from APP_SORTCODESEC a where a.enable=1 and a.type=? order by a.secremark";
			datas = dao.find(sql,type);
			return datas;
	}
	
}
